﻿/*using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace Blox
{

    public class TextBox
    {
        TechCraftEngine.TechCraftGame game;

        public TextBox(TechCraftEngine.TechCraftGame game)
        {
            this.game = game;
        }


        public System.Windows.Forms.Form child;
        private static readonly object _lockForTextBox = new object();

        public string ShowTextBoxDialog()
        {
            lock (_lockForTextBox)
            {
                child = new System.Windows.Forms.Form();
                child.Owner = System.Windows.Forms.Form.FromHandle(game.Window.Handle) as System.Windows.Forms.Form;
                child.Bounds = new System.Drawing.Rectangle(0, 0, 440, 440);

                System.Windows.Forms.TextBox textBox = new System.Windows.Forms.TextBox();
                child.Controls.Add(textBox);
                textBox.Bounds = new System.Drawing.Rectangle(10, 10, 380, 350);
                textBox.Multiline = true;

 

                child.ShowDialog();

                string text;
                if (child.DialogResult == System.Windows.Forms.DialogResult.OK)
                {
                    text = textBox.Text;
                }
                else
                {
                    text = null;
                }


                textBox.Dispose();
                child.Dispose();

                textBox = null;
                child = null;
                return text;
            }
        }  
    }
}
*/